package cn.funeralobjects.ams.web.api;

import cn.funeralobjects.ams.web.model.MRegion;
import cn.funeralobjects.ams.web.model.VRegion;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import reactor.core.publisher.Mono;


/**
 * Api of Region
 *
 * @author FuneralObjects
 * Create date: 2020/5/25 7:30 PM
 */
@Validated
public interface RegionApi extends BaseAmsApi<VRegion, MRegion, Integer> {

    /**
     * 查找区域数据
     *
     * @param regionId 区域id
     * @return 区域实体数据
     */
    @GetMapping("/region-id-{regionId}")
    Mono<VRegion> findByRegionId(@PathVariable String regionId);
}
